import {createStore,compose,applyMiddleware } from 'redux' 
import reducer from './reducer' 
import createSagaMiddleware from 'redux-saga'
import TodoSagas from './sagas'
 
const sagaMiddleware = createSagaMiddleware() 
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({trace:true}) || compose 
const enhancer = composeEnhancers(applyMiddleware(sagaMiddleware))
const strore = createStore(reducer,enhancer);

sagaMiddleware.run(TodoSagas)

export  default strore 